<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    
    <title>主界面</title>
   <script type="text/javascript">
    var tips; 
	var theTop = 100/*这是默认高度,越大越往下*/; 
    var old = theTop;
    
    function initFloatTips() {
      tips = document.getElementById("QQFloat");
      moveTips();
    };
    
    function moveTips() {
      var tt=50;
      if (window.innerHeight) {
        pos = window.pageYOffset
      }
      else if (document.documentElement && document.documentElement.scrollTop) {
        pos = document.documentElement.scrollTop
      }
      else if (document.body) {
        pos = document.body.scrollTop;
      }

      pos=pos-tips.offsetTop+theTop;
      pos=tips.offsetTop+pos/10;
     
      if (pos < theTop) pos = theTop;
      if (pos != old) {
        tips.style.top = pos+"px";
	tt=50;
      //alert(tips.style.top);
      }
      old = pos;
      setTimeout(moveTips,tt);
    }
    
      function hide()
     {
     showad=false;
     window.document.getElementById("QQFloat").style.display="none";
     }

 window.onload=initFloatTips;
</script> 
	

  </head>
  
  <body>
  <center>
    <table>
  	<tr align="center"><td>
   	<table>
   		<tr><td rowspan="2" width="30" height="25"><img  src="../images/ww.jpg" width="60" height="50"> </td><td><font>今日点餐</font> </td></tr>
   		<tr><td><font>吃好每一天，健康每一天</font> </td></tr>
   		
   	</table></td>
   		<td width="600"><font color="#CE2448" size=9 >上游订餐系统</font></td>
  		 <td><font color="#CE2448" size=4><a href="">登录</a> <a href="">注册</a></font></td>
   	</tr>
   	
   	</table>
   <hr style=" color: #F6E5D5">
   <!-- 下面用来放主logo -->
  <table><tr>
   <td style=" background-image: url('../images/dingcanall.jpg');"><font color=red face= 楷体 size=5><a href="">首页</a></font></td>
   <td style=" background-image: url('../images/dingcanall.jpg')"><font color=red face= 楷体 size=5><a href="">我的餐车</a></font></td>
   <td style=" background-image: url('../images/dingcanall.jpg')"><font color=red face= 楷体 size=5><a href="getAllFuning.action">每日一笑</a></font></td>
   <td style=" background-image: url('../images/dingcanall.jpg')"><font color=red face= 楷体 size=5><a href="showTodayOrdered.action">今日点餐</a></font></td>
   </tr></table>
	<div id="QQFloat" style="top:50px;position: absolute;border:dashed 1px #F90;line-height:20px; width:100px;">
		放查找最新更新的笑话
<div style="margin:0; background-color:Lime;">
<a href="javascript:;" onclick="hide()" style="color:#000000;text-decoration:underline;font-size:12px;">关闭</a></div>
</div>
   
   
   <form action="" method="post">
		<table border="0">
		<tr style="width: 35px; height: 35px; "><td colspan="3"  style="background-image: url('../images/dingcanall.jpg'); width: 900pt; height: 35px; ">选择餐厅：</td></tr>
			<tr>
			
			<%
			for(int i=0;i<3;i++){
	
	 %>	
			<td>
				<table border="1" cellpadding="1" cellspacing="1" bordercolor="#FAE6CE">
					<tr><td rowspan="5" width="250pt" height="250"><img src=""/></td> <td> 菜名：农家小炒肉</td></tr>
					<tr><td>单价： 6元每份</td></tr>
					<tr><td>店名： 一招鲜</td></tr>
					<tr><td><input type="radio" > 是否点餐</td></tr>
					<tr align="center"><td ><input type="submit" value="点餐"/></td></tr>
				</table>
			</td>
			<%
				} 
				
				%>
			
			</tr>
		</table>	   	
   </form>
   </center>
   
   
  </body>
</html>
